//
//  ImageBootcamp.swift
//  SwiftUiExercise
//
//  Created by 徐鹏 on 2023/6/23.
//

import SwiftUI

struct ImageBootcamp_08: View {
    var body: some View {
        Image("a")
            .resizable()
            .foregroundColor(.green)
            // .cornerRadius(150)
           // .aspectRatio(contentMode: ContentMode.fit) //.fit 保持原始尺寸
            .scaledToFill()
            .frame(width: 300,height: 200)
            //.clipped()
            /*.clipShape(
                //Circle()
                //RoundedRectangle(cornerRadius: 25)
                Ellipse()
                
            )*/
            
    }
}

struct ImageBootcamp_Previews: PreviewProvider {
    static var previews: some View {
        ImageBootcamp_08()
    }
}
